package lab01;

import java.util.Scanner;

public class Test07 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入成绩等级：");
        String grade = sc.next();
        //用if-else实现
        if (grade.equals("A")) {//字符串的等于用equals
            System.out.println("成绩>=85分");

        } else if (grade.equals("B")) {
            System.out.println("成绩>=70分");
        } else if (grade.equals("C")) {
            System.out.println("成绩>=60分");
        } else if (grade.equals("D")) {
            System.out.println("成绩<60分");
        } else {
            System.out.println("输入错误");
        }
    }
}
